/*
 * HttpStringBody.h
 *
 */

#ifndef HTTPSTRINGBODY_H_
#define HTTPSTRINGBODY_H_

#include "HttpBody.h"
#include <sstream>

class HttpStringBody: public HttpBody {
	private:
		std::stringstream body;
		size_t size;
	public:
		HttpStringBody(const std::string& body);
		virtual ~HttpStringBody();

		HttpHeader* getContentLength() const;
		size_t getSize() const;
		std::istream& getStream();
};

#endif /* HTTPSTRINGBODY_H_ */
